package org.tjc.net.manager.config.json;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: tjc
 * @description
 * @Date Created in 23:08 2020-12-23
 */
@Data
public class NgCommand extends NgModule {
    private String name;
    private List<Object> values = new ArrayList<>();
    private int type;
    private int valueType;

    public static CmdSet ngSet = (ctx, key, value) -> {
        NgCommand ngCmd = new NgCommand();
        ngCmd.setName(key);
        ngCmd.addValue(value);
        ctx.addCommand(ngCmd);
    };


    public void addValue(Object value) {
        this.values.add(value);
    }

    @Override
    public void init() {

    }
}
